package client.comm.baoding.ui

import android.content.IntentFilter
import androidx.lifecycle.Observer
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import client.comm.baoding.BaseMiddleActivity
import client.comm.baoding.R
import client.comm.baoding.adapter.CateNewAdapter
import client.comm.baoding.adapter.NewSyAdapter
import client.comm.baoding.adapter.SyPagingHeader2Adapter
import client.comm.baoding.api.bean.GoodsIndex
import client.comm.baoding.databinding.ActivityGuojiBinding
import client.comm.baoding.receiver.MeBroadcast
import client.comm.baoding.ui.vm.MainViewModel
import client.comm.commlib.comm_ui.draw.SpaceItemBottomDecoration
import client.comm.commlib.toast.toast
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import kotlin.properties.Delegates

class GuoJiActivity : BaseMiddleActivity<MainViewModel, ActivityGuojiBinding>() {

    override fun getLayout(): Int {
        return R.layout.activity_guoji
    }

    override fun initViewModel(): MainViewModel = createViewModel()

    override fun initView() {
        binding.event = this

        intent.getStringExtra("title_name")?.let {
            binding.titleName = it
        }

    }

}

